# Maintainer: Laurent Bercot <ska-devel@skarnet.org>
# Contributor: Christian Kampka <christian@kampka.net>
pkgname=s6-linux-utils
pkgver=2.5.1.2
pkgrel=0
pkgdesc="A set of tiny Linux-specific utilities optimized for simplicity and small size."
url="http://skarnet.org/software/$pkgname/"
arch="all"
license="ISC"
options="!check"
makedepends="skalibs-dev linux-headers"
subpackages="$pkgname-doc"
source="http://skarnet.org/software/s6-linux-utils/s6-linux-utils-$pkgver.tar.gz"

build() {
	./configure \
		--enable-shared \
		--enable-static \
		--disable-allstatic \
		--prefix=/usr \
		--libdir=/usr/lib
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

doc() {
	default_doc
	mkdir -p "$subpkgdir/usr/share/doc"
	cp -a "$builddir/doc" "$subpkgdir/usr/share/doc/$pkgname"
}

sha512sums="4557148c3e739471a8846d3e0425da826d77ab3b7fc8d6c777d110152343596d17fde37fddcb099b107663138a5447866c3ff00a05f59d034379d26b1e147331  s6-linux-utils-2.5.1.2.tar.gz"
